package com.java.userservice.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

import java.io.Serializable;
import java.util.Collection;

/**
 * 用户信息模型类
 *
 * @author Wu Qingzhuang
 */
@Data
public class User implements Serializable {
    private String username;
    private String password;
    @TableField(exist = false)
    private boolean isEnabled = true;
    @TableField(exist = false)
    private Collection<? extends GrantedAuthority> authorities;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}